package org.com.yz.dal.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 准备金账户挂账---资金明细表
 * </p>
 *
 * @author wzc123
 * @since 2018-08-17
 */
@TableName("his_accnt_prepay")
@Getter
@Setter
public class HisAccntPrepay extends Model<HisAccntPrepay> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id_his_accnt_prepay", type = IdType.AUTO)
    private Integer idHisAccntPrepay;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    @TableField("transaction_no")
    private String transactionNo;
    /**
     * 事件名称
     */
    private String event;
    /**
     * 事件发生金额
     */
    @TableField("event_amt")
    private Long eventAmt;

    @TableField("event_time")
    private Date eventTime;
    /**
     * 准备金账户挂账金额---事件发生前
     */
    @TableField("accnt_amt_before")
    private Long accntAmtBefore;
    /**
     * 准备金账户挂账金额---事件发生后
     */
    @TableField("accnt_amt_after")
    private Long accntAmtAfter;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    private String orderNo;


    @Override
    protected Serializable pkVal() {
        return this.idHisAccntPrepay;
    }

    @Override
    public String toString() {
        return "HisAccntPrepay{" +
        "idHisAccntPrepay=" + idHisAccntPrepay +
        ", mchNo=" + mchNo +
        ", transactionNo=" + transactionNo +
        ", event=" + event +
        ", eventAmt=" + eventAmt +
        ", eventTime=" + eventTime +
        ", accntAmtBefore=" + accntAmtBefore +
        ", accntAmtAfter=" + accntAmtAfter +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
